// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// src目录下主动查找对应app文件
import App from './App'
import router from './router'
// 引入vuex
import store from './store'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 引入fastClick解决click事件延时300ms问题
import fastClick from 'fastclick'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import './assets/styles/index.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
// 应用fastClick
fastClick.attach(document.body)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  // router:router,下面也是es6写法
  router,
  store,
  // components: { App:App },键和值一样时可省略一项，以下为es6写法
  components: { App },
  template: '<App/>'
})
// 路由就是根据网址不同，返回不同的内容给用户
